package com.cloud.pole.shop.model.entity.shops;


import java.io.Serializable;
import java.util.Date;
import javax.persistence.Column;
import javax.persistence.GeneratedValue;
import javax.persistence.Id;
import javax.persistence.Table;
import org.hibernate.validator.constraints.NotEmpty;
import lombok.Data;

/**
 * @author 
 */
@Data
@Table(name="shop_shops_view")
public class ShopShopsView implements Serializable {
	  /**
     * viewid
     */
    @Id
    @Column(name="view_id")
    private Long viewId;

    /**
     * 商家Id
     */
    @NotEmpty
    @Column(name="merchant_id")
    private Integer merchantId;

    /**
     * 店铺id
     */
    @NotEmpty
    @Column(name="shop_id")
    private Integer shopId;

    /**
     * 用户id
     */
    @Column(name="user_id")
    private Long userId;

    /**
     * 最新浏览时间
     */
    @Column(name="last_view_time")
    private Date lastViewTime;

    /**
     * 浏览次数
     */
    @Column(name="view_times")
    private Integer viewTimes;

    /**
     * open_id
     */
    @Column(name="open_id")
    private String openId;

    /**
     * 用户头像
     */
    @Column(name="avatar_url")
    private String avatarUrl;
    
    
    /**
       * 用户昵称
     */
    @Column(name="nick_name")
    private String nickName;
    
    /**
     * 店铺名称
    */
	 @Column(name="shop_name")
	 private String shopName;
    
    private static final long serialVersionUID = 1L;
}